package homework.mid_autumn_festival.string_exercise;


public class StartWithDemo {
    public static void main(String[] args) {
        String str = "www.tedu.cn";
        boolean start = str.startsWith("www.");
        System.out.println(start);//true

        boolean end = str.endsWith(".cn");
        System.out.println(end);//true
    }
}
